<template>
	<view class="home">
		<uni-nav-bar shadow left-icon="left" title="长按图片关注公众号" @clickLeft="back" />
		
		<view class="container">
			<image :draggable="true" :show-menu-by-longpress="true" src="/static/officialAccountsLogo.jpg" mode="aspectFit"></image>
			长按图点击下方公众号前往关注
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			back() {
				let pages = getCurrentPages()
				if (pages.length > 1) {
					uni.navigateBack({
						delta: 1
					})
				} else {
					uni.reLaunch({
						url: "/pages/index/index"
					})
				}
			},
		}
	}
</script>

<style scoped>
.home{
	background-color: #8d8d8d;
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
}
.home .container{
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	text-align: center;
	font-size: 1rem;
	font-weight: bold;
	color: #ffffff;
}
</style>
